package cn.stylefeng.guns.modular.course.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author typ
 * @since 2021-04-24
 */
@TableName("yy_course_video")
@Data
public class CourseVideo implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("video")
    private String video;

    @TableField("sort")
    private Integer sort;

      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

      @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    @TableField("price")
    private BigDecimal price;

    @TableField("click")
    private Integer click;

    @TableField("course_id")
    private Integer courseId;




    @Override
    public String toString() {
        return "CourseVideo{" +
        "id=" + id +
        ", name=" + name +
        ", video=" + video +
        ", sort=" + sort +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        ", price=" + price +
        ", click=" + click +
        "}";
    }
}
